package com.untour.im.codec.protocol.message.body;

import com.untour.im.codec.protocol.message.content.MessageContent;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ImMessageBody<T extends MessageContent> implements MessageBody {
    /**
     * 消息ID
     */
    private String messageId;

    private T messageContent;

    public ImMessageBody(String messageId, T messageContent) {
        this.messageId = messageId;
        this.messageContent = messageContent;
    }
}
